cmake_minimum_required(VERSION 3.31)
project(real_project
    VERSION 0.1.0
    DESCRIPTION "A real project"
    HOMEPAGE_URL "https://gitee.com/xingshuo98/cmake_git_learn_bilibili"
    # 这是项目的github目录
)

set(CMAKE_CXX_STANDARD 17)

# 上层cmake设置的变量对下层cmake文件是可见的, 无需重复设置
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)